<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Powerless < wzxaini9@gmail.com>
// +----------------------------------------------------------------------
namespace app\user\controller;

use app\api\service\RegisterService;
use cmf\controller\HomeBaseController;

class WebController extends HomeBaseController
{

    /**
     * 邀请注册
     */
    public function register()
    {
        $mobile = $this->request->param("mobile");
        $this->assign('mobile',$mobile);
        //省市区数据
        $address = cache('h5_address');
        if (empty($address)) {
            $registerSer = new RegisterService();
            $address = $registerSer->getH5Address();
            cache('h5_address', $address, 3600);
        }
        $this->assign('address',json_encode($address));
        return $this->fetch();
    }



}